How to: Use the RANDBETWEEN() function.

Solution:


Select the desired cell. Enter =RANDBETWEEN(<smallest number to return>, <largest number to return>) and press ENTER.

NOTE: The RANDBETWEEN() function returns a random number between two given numbers. For this function to work, the Analysis ToolPak must be installed and enabled.